﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;
using System.Text.RegularExpressions;

namespace A2DFramework.EventService.SuperSocket.Core.Commands
{
    public class ME : CommandBase<EventDispatcherBusSession, StringRequestInfo>
    {
        public override void ExecuteCommand(EventDispatcherBusSession session, StringRequestInfo requestInfo)
        {
            session.AssociatedServerIdentity = Helper.RestoreSpecialCharacters(requestInfo.Parameters[0]);
            Console.WriteLine(string.Format("[{0}]: connected.", session.AssociatedServerIdentity));
        }
    }
}
